import {CURRENT_ORDER_CANCEL, CURRENT_ORDER_JOIN} from "../contants/actionTypes";

const initState = {
    parkLotName: "",
    type: "",
    address: "",
    orderId: ""
};
const currentOrderReducer = (state = initState, action) => {
    switch (action.type) {
    case CURRENT_ORDER_CANCEL:
        return initState;
    case CURRENT_ORDER_JOIN:
        return {...state};
    default:
        return state;
    }
};
export default currentOrderReducer;